Skip to content

feat(system): show IM queue and optional host operations overview - #4231

Open
acse-bq23 wants to merge 8 commits into
Tencent:mainfrom
acse-bq23:work/upstream-runtime-operations-20261013
Open

acse-bq23 wants to merge 8 commits into
Tencent:mainfrom
acse-bq23:work/upstream-runtime-operations-20261013

Conversation

@acse-bq23

@acse-bq23 acse-bq23 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

The administrator Task Queues page shows Asynq and model-limiter state. This adds the IM queue's live occupancy and an optional host operations overview, so queue pressure, disk capacity, backup freshness and container/service health can be checked together.

  • Report current-process IM workers, active requests, queue depth/capacity and rejection/timeout counters. Disabled queues report unavailable.
  • Read bounded, typed host samples from WEKNORA_OPERATIONS_STATUS_FILE. Missing or invalid samples remain unknown; samples older than ten minutes are visibly stale.
  • Provide an optional Python standard-library Linux collector for selected disks, backup directories, containers and services. The backend needs a read-only directory mount.
  • Include six locales, responsive theme-aware rendering, API schemas and deployment instructions.

This is an additive observability feature with no migration or new production dependency. Collection is opt-in. Backup freshness follows the documented latest/COMPLETE convention and does not verify restoration.

Main compatibility

Merged upstream main e1f9a6166a593a4804a2f99f1d942919c9cc8ea7 into the existing contribution branch. The runtime response retains main's queue, worker and model error fields and assistant-schema tags alongside the operations and IM fields. The API schemas were reconciled for these definitions.

Validation

Against the updated branch in isolated Linux containers:

  • Related Go race tests for IM metrics/availability, runtime handlers, access/routes and container wiring.
  • All API documentation contract tests, go vet for IM/handlers, and same-version Go lint over the complete contribution patch.
  • Five monitoring collector tests.
  • Full frontend test suite, TypeScript checking and production build passed in official CI. The 27 selected style/localization/pagination checks, TypeScript checking and production build also passed in isolated local containers.

The original component preview used synthetic telemetry and covered normal/stale/missing samples, desktop/mobile, Chinese/English and dark theme. No deployed end-to-end stack or real model/IM load test was performed for this update.

Screenshot

Runtime operations overview

Extend the existing administrator runtime queue page with process-local IM
occupancy and opt-in aggregate host, backup, container-log and service data.
Make resource selection portable; show missing and stale data explicitly.
Add six locales, API schemas, collector configuration and a synthetic screenshot.

Validation: focused Go race tests, container wiring compilation and go vet
passed; Swagger contracts passed; five Python tests and Linux collection passed.
Frontend type-check/build and 16 i18n/pagination tests passed. Browser normal,
stale, unknown, responsive, English/Chinese and dark-mode views verified.
No deployment or task scheduling changes.
Use the project typography tokens in the operations overview and refresh its
synthetic preview. Apply the configured Go formatting, line length and exported
API documentation rules; explicitly discard close errors for read-only samples.

Validation: golangci-lint v2.12.2 against the full PR Go patch for changed packages,
focused Go race tests and Swagger contracts; full frontend test suite
(1499 passed, 1 skipped), type-check and production build. No check configuration
changes, scheduling changes or production deployment.
Reconcile runtime response and API schemas with e1f9a61 while preserving operations and IM metrics. Use current radius tokens for the frontend style guards.

Validation: related Go race tests, documentation contracts, monitoring collector tests, frontend style/localization/pagination regression checks and TypeScript checking in isolated Linux containers. Lint and production-build logs are retained with the contribution evidence.
… merge

Restore the upstream comment block adjacent to the runtime response so the contribution does not introduce unrelated documentation changes. Validation: whitespace check; final changed-code lint and runtime regression are recorded with contribution evidence.
Preserve the contribution on the current upstream structure. Verified focused Go tests, frontend checks and Vue types.
Identify the synchronized main revision as the incoming parent so GitHub scopes reviews and CI to the verified contribution.
@acse-bq23 acse-bq23 closed this Nov 30, 2026
@acse-bq23 acse-bq23 reopened this Nov 30, 2026
Reopening refreshed the review base, but its event still supplied the historical base to path filters and lint. Request a synchronize event on the unchanged, tested tree.
Verified the docs suite and semantic equality of the generated schema.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant